package com.example.dc.Service;

import com.example.dc.domain.User;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface UserService {
    List<User> findPassword(String phone);

    boolean codeIsRight(String account,String code);

    User getUserInfo(Integer id);

    public List<User> getTeamAndUser(Integer teamId);

    Integer register(String account, String password,Character type);

    public Integer findUser(String phone);

    void updateUserAuth(Integer userId,String name, Integer age, Character sex);

    Boolean isFirst(Integer userId);

    void updateRegistTime(Integer userId);

    void updateUserInfo(String nickname,String avatar,String intro,Integer userId);

    public void requestCode(String phone,String  code,Character type);

    public void editUser(User user);

    public User getUserInfoByAccount(String account);

    public void insertLoginHistory(String account,String password,String address,Character type,Character status);
}
